package com.qidianit.mes.sys.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.Supplier;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface SupplierService {

    Result<PageInfo<Supplier>> selectList(Supplier supplier, int pageNum, int pageSize);

    Result<Supplier> selectByCode(String code);

    Result<Supplier> addSupplier(Supplier supplier);

    Result updateSupplierById(Supplier supplier);

    Result deleteById(Long id);

    Result batchDelete(Long[] ids);
}
